{extend name='layout/base'}
{block name='title'}蛋糕_生日蛋糕网上订购_生日蛋糕预订_Rose/玫瑰蛋糕官网{/block}
{block name='head'}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/static/css/productClass.css">
{/block}
{block name='content'}
<!--content start-->
<div class="container-fluid">
    <!--middle start-->
    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-9">
            <!--top start-->
            <div class="top">
                <div class="topWords">
                    <span>分类:</span>
                    <?php
                        $categories = config('set.category_status');
                        foreach($categories as $key => $value):
                    ?>
                    <a href="<?php echo url('index/product.ProductClass/index',['category' =>"$key"]);?>">
                        <?php
                            if($key==0){
                                echo "全部".$value;
                            }else{
                                echo $value;
                            }
                        ?>
                    </a>
                    <?php endforeach;?>
                </div>
                <div class="topWords">
                    <span>口味:</span>
                    <?php 
                        $tastes = config('set.taste_status');
                        foreach($tastes as $key => $value):
                    ?>
                    <a href="<?php echo url('index/product.ProductClass/index',['taste' =>"$key"]);?>">
                        <?php
                            if($key==0){
                                echo "全部".$value;
                            }else{
                                echo $value;
                            }
                        ?>                        
                    </a>
                    <?php endforeach;?>                  
                </div>                
            </div>
            <!--top end-->
            <!--goods start-->
            <div class="products row">
                {foreach $goods as $good}
                <div class="product col-md-3 col-xs-4">
                    <span class="rectangle"><?php echo config('set.features_status')["$good->features"]?></span>
                    <a href="<?php echo url('index/product.ProductDetails/index',['goods_id'=>$good->goods_id]);?>">
                        <img src="<?php echo thumb_url($good->goods->image);?>">
                        <p class="text-center">{$good->goods->title}</p>
                        <p class="text-center price"><span>￥{$good->goodsAttr->price}/</span> <span>{$good->size}磅</span></p>
                    </a>
                    <p class="text-center">
                        <a href="#"><span class="features"><?php echo config('set.taste_status')["$good->taste"]?> > </span></a>
                        <a><span class="features"><?php echo config('set.category_status')["$good->category"]?> > </span></a>
                    </p>
                    <a href="<?php echo url('index/Prompt/index');?>">
                        <p class="text-center"><span class="glyphicon glyphicon-shopping-cart"></span>  <span>加入购物车</span></p>                         
                    </a>
                </div>
                {/foreach}   
            </div>
            <!--goods end-->
        </div>
        <div class="col-md-1"></div>
    </div>
    <!--middle end-->
</div>
<!--content end-->        
{/block}